if [[ ! -f $HOME/.local/share/zinit/zinit.git/zinit.zsh ]]; then
    print -P "%F{33} %F{220}Installing %F{33}ZDHARMA-CONTINUUM%F{220} Initiative Plugin Manager (%F{33}zdharma-continuum/zinit%F{220})…%f"
    command mkdir -p "$HOME/.local/share/zinit" && command chmod g-rwX "$HOME/.local/share/zinit"
    command git clone https://github.com/zdharma-continuum/zinit "$HOME/.local/share/zinit/zinit.git" && \
        print -P "%F{33} %F{34}Installation successful.%f%b" || \
        print -P "%F{160} The clone has failed.%f%b"
fi

source "$HOME/.local/share/zinit/zinit.git/zinit.zsh"
autoload -Uz _zinit
(( ${+_comps} )) && _comps[zinit]=_zinit


zi ice lucid wait="0" atload="_zsh_autosuggest_start"
zi light zsh-users/zsh-autosuggestions

zi ice lucid wait="0" atinit="zpcompinit"
zi light zdharma-continuum/fast-syntax-highlighting

zi ice lucid wait="0"
zi light zthxxx/zsh-history-enquirer 

zi ice depth=1
zinit light jeffreytse/zsh-vi-mode

zi wait lucid for z-shell/zsh-fancy-completions

zinit light Aloxaf/fzf-tab

